﻿using System;
using System.Collections.Generic;
using System.Data.Entity;
using DiemTichLuyModels.Object;
namespace DiemTichLuyModels.Context
{
    public class DataContext:DbContext
    {
        public DataContext()
            : base("DefaultConnection")
        {
            Database.SetInitializer<DataContext>(new CreateDatabaseIfNotExists<DataContext>());
        }

        public DbSet<LoaiSanPham> LoaiSanPhams { get; set; }
        public DbSet<SanPham> SanPham { get; set; }
    }
}
